package com.example.Lezedata;

import android.app.Application;
import android.content.pm.ApplicationInfo;

import androidx.multidex.MultiDex;

public class GBApplication extends Application {
    private static GBApplication context;

    public static boolean isDebug() {
        GBApplication application = (GBApplication)getContext();
        boolean isDebug = (application.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
        return isDebug;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        MultiDex.install(this);
        context = this;
        GBAppInit.AppInit();
    }

    public static GBApplication getContext() {
        return context;
    }
}
